﻿@model DHQGHN.PM2.Models.HouseHoldModel

<br />
<div class="row">
    <div class="col-md-12">
        <div class="row">
            <div class="col-md-2">
                @Html.LabelFor(model => model.HOUSEHOLD_CODE)
            </div>
            <div class="col-md-4">
                @Html.TextBoxFor(model => model.HOUSEHOLD_CODE, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
            </div>
            <div class="col-md-2">
                @Html.LabelFor(model => model.HOUSEHOLD_NUMBER)
            </div>
            <div class="col-md-4">
                @Html.TextBoxFor(model => model.HOUSEHOLD_NUMBER, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
            </div>
        </div>
        <div class="row" style="margin-top:10px;">
            <div class="col-md-2">
                <p>
                    @Html.LabelFor(model => model.SURVEY_METHOD_ID)
                </p>
            </div>
            <div class="col-md-4">
                @if (Model.SURVEY_METHOD_ID == "01")
                {
                     @Html.TextBox("Điều tra Online","Điều tra Online" ,new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
                }
                else if (Model.SURVEY_METHOD_ID == "02")
                {
                    @Html.TextBox("Điều tra Tablet", "Điều tra Tablet",new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
                }
                else if (Model.SURVEY_METHOD_ID == "03")
                {
                    @Html.TextBox("Điều tra Giấy", "Điều tra Giấy",new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
                }else
                {
                    @Html.TextBox("Không xác định", "Không xác định", new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
                }
            </div>
            <div class="col-md-2">
                <p>
                    @Html.LabelFor(model => model.NUM_OF_HH_MEMBER)
                </p>
            </div>
            <div class="col-md-4">
                <p>
                    @Html.TextBoxFor(model => model.NUM_OF_HH_MEMBER, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
                </p>
            </div>
        </div>
        <div class="row" style="margin-top:10px;">
            <div class="col-md-3">
                @Html.LabelFor(model => model.AREA_ID, new { @class = "text-center" })
            </div>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.AREA_ID_NAME, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
            </div>
        </div>

        <div class="row" style="margin-top:10px;">
            <div class="col-md-3">
                @Html.LabelFor(model => model.HOUSEHOLD_NAME, new { @class = "text-center" })
            </div>
            <div class="col-md-9 ">
                @Html.TextBoxFor(model => model.HOUSEHOLD_NAME, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
            </div>
        </div>
        <div class="row" style="margin-top:10px;">
            <div class="col-md-3">
                @Html.LabelFor(model => model.HH_HEAD_MOBILE, new { @class = "text-center" })
            </div>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.HH_HEAD_MOBILE, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
            </div>

        </div>
        <div class="row" style="margin-top:10px;">
            <div class="col-md-3 ">
                <p>
                    @Html.LabelFor(model => model.HH_HEAD_EMAIL, new { @class = "text-center" })
                </p>
            </div>
            <div class="col-md-9">
                <p>
                    @Html.TextBoxFor(model => model.HH_HEAD_EMAIL, new { @class = "form-control  ", style = "background-color: white;", @readonly = "readonly" })
                </p>
            </div>
        </div>
        <div class="row" style="margin-top:10px;">
            <div class="col-md-3 " style="vertical-align: middle;">
                @Html.LabelFor(model => model.HH_HEAD_SIGNATURE, new { @class = "text-center" })
            </div>
            <div class="col-md-9">
                @{
                    var imgSrc = String.Format("data:image/jpeg;base64,{0}", Model.HH_HEAD_SIGNATURE);
                }
                <img src="@imgSrc" />
            </div>
        </div>

    </div>
    @*<div class="col-md-12" align="center">
            <input type="submit" value="Xóa" class="btn btn-md btn-dark">
            <input type="button" class="btn btn-md btn-default" value="Quay lại" onclick="window.location.href='@Url.Action("IndexHouseHoldPV")';">
        </div>*@
</div>